# Contributor: Steven Honson <steven@honson.id.au>
# Maintainer: Steven Honson <steven@honson.id.au>
pkgname=babeld
pkgver=1.13.1
pkgrel=0
pkgdesc="A loop-avoiding distance-vector routing protocol"
options="!check" # No test suite available
url="https://www.irif.fr/~jch/software/babel/"
arch="all"
license="MIT"
makedepends="linux-headers"
subpackages="$pkgname-doc $pkgname-openrc"
source="
	https://www.irif.fr/~jch/software/files/babeld-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	"

build() {
	make
}

package() {
	make TARGET="$pkgdir" PREFIX="/usr" install
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="
73344cdfda6aea4fd4c2dd445de5ed458a7d4c0977e7657a27f3ee605ab26703b657a29b2450fa66d611618ce19defcbd222742e8ce22541948623ab6eda853c  babeld-1.13.1.tar.gz
882a83529d0a25626354598837ab9ab9d1e9c9ba57ffdf9623e6fa9fa7384725a0ad703884c8a366807de8f6e0cead8bcfd26edcc4a2eb15d536e8d1a342ee04  babeld.initd
d585e2a140217cf5265b630cb1ec117cbb802d560c23309b281041713496268d86c7768c9d35a66af52977fc27ef1d3f5ac99f9c9a361fff3b25d4d150d0a959  babeld.confd
"
